vm-import: fix unmanaged instance listing#5400
Conversation
|
@blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1099 |
|
@blueorangutan test centos7 vmware-67u3 |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
|
Trillian test result (tid-2304)
|
|
@shwstppr Can you double check your test output? I see 't1' as a vm name in the initial state, and then 'test123' and 'i-2-5-VM' in the final report. I'm thinking 't1' and 'test123' are meant to be the same, but please confirm (is this output from two different test runs, or am I missing the point?) |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 1528 |
|
@shwstppr can you fix the conflicts |
34a939d to
527146a
Compare
When the host and last host ID is not set for the VM, it may appear in the list of unmanaged instances. This changes fixes the behaviour by filtering unmanaged instances list for host for following three criteria: - host is set as host_id for the VM - host is set as the last_host_id for the VM - pod of the host is set as the pod_id for the VM and both host_id and last_host_id is NULL Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
527146a to
6f20a8e
Compare
|
@DaanHoogland Zone had two VMs. One managed VM - t1. Other unmanaged VM - test123. In the tests, without PR changes ACS wrongly lists both VMs as unmanaged VMs. After changes ACS correctly lists only test123 as the unmanaged VM. @blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2364 |
|
@blueorangutan test centos7 vmware-67u3 |
|
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
|
@shwstppr I can see the managed but not the unmanaged instances: |
|
Trillian test result (tid-3049)
|
|
Moving to draft while I retest and fix the issue |
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
@blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2393 |
|
@DaanHoogland can you please give it a try now |
|
@blueorangutan test centos7 vmware-67u3 keepEnv |
|
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
@blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2404 |
|
good work @shwstppr , I now see both lists populated. I'll restart a set of smoke tests. |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
DaanHoogland
left a comment
There was a problem hiding this comment.
clgtm
manually tested
|
Trillian test result (tid-3119)
|
these failures ^^^ are unrelated to the changes in this PR. |


Description
When the host and last host ID is not set for the VM, it may appear in the list of unmanaged instances.
This change fixes the behaviour by filtering unmanaged instances list for the host for the following three criteria:
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Clusters:
Zone has two VMs. One managed VM - t1. Other unmanaged VM - test123. In the below tests, without PR changes ACS wrongly lists both VMs as unmanaged VMs. After changes ACS correctly lists only test123 as the unmanaged VM.
VMs list in the environment after inter-cluster migration of VM - t1:
Unmanaged instances list before fix:
Unmanaged instances list after fix: